Skip to content

neuvector/bamboo-plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bamboo plugin

Work flow

CI-plugin drawio

Env setup

Prerequest

Server setup

  1. Start a bamboo server (bamboo server or you have your own)
    • Simply run atlas-create-bamboo-plugin in terminal.
    • Then atlas-run
  2. Go to Manage App, install it with .obr file
Screen Shot 2024-03-15 at 4 57 46 PM

Plugin setup

  1. Go to Neuvector Section
Screen Shot 2024-03-15 at 5 06 28 PM
  1. Setup the env based on your need.
Screen Shot 2024-03-15 at 5 09 32 PM
  1. Create a Project and set up tasks.

  2. Set up the task based on your need

    • Set up the fail / exempt, write in format like CVE-2021-23840
    • Click X can dynamically delete the CVE
    Screen Shot 2024-03-15 at 5 09 32 PM
  3. Create artifact in task, must create or you have no such report

Screen Shot 2024-03-20 at 12 03 59 PM

How to run the plugin

  • Click run.
  • When finish, we will have two files (you can click to download)
    • Html
    • Json
    • Txt
    Screen Shot 2024-03-20 at 12 03 44 PM

Trouble shooting

  1. buildLogger.addBuildLogEntry() shows in console of the task.
Screen Shot 2024-03-15 at 5 13 23 PM
  1. System.out.println() shows in bamboo server, where your run atlas-run
Screen Shot 2024-03-15 at 5 12 15 PM

Build from source

atlas-clean && atlas-mvn package can generate the .obr / .jar

Reference

  1. Create a HelloWorld plugin project
  2. Bamboo Tutorial